﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Com.Guocz.Media.FileSystem
{
    public class BlockMetaInfo : ISerializable
    {
        public int ChunkIndex { get; set; }
        public int BlockIndex { get; set; }


        #region ISerializable Members

        public void readField(System.IO.BinaryReader input)
        {
            ChunkIndex = input.ReadInt32();
            BlockIndex = input.ReadInt32();
        }

        public void writeField(System.IO.BinaryWriter output)
        {
            output.Write(ChunkIndex);
            output.Write(BlockIndex);
        }

        #endregion
    }
}
